package com.ruoyi.business.controller;


import com.ruoyi.business.common.Result;
import com.ruoyi.business.entity.ComplaintInfo;
import com.ruoyi.business.service.FrontComplaintInfoService;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author Ao
 * @since 2024-01-08
 */
@RestController
@RequestMapping("/complaintInfo")
public class FrontComplaintInfoController {

    @Autowired
    private FrontComplaintInfoService complaintInfoService;

    //获取投诉列表
    @ApiOperation(value = "投诉信息列表")
    @GetMapping("/list")
    public Result<List<ComplaintInfo>> getList(){
        List<ComplaintInfo> list = complaintInfoService.list();
        return Result.success(list);
    }

}

